<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>title</title>
    <script src="../../script/api.js"></script>
    <script type="text/javascript" charset="UTF-8" src="../../script/naes.js"></script>
	<script src="../../script/constants.js"></script>
    <style type="text/css">  
            html,body{  
                height: 100%;  
                width: 100%;  
            }  
            .test{  
                height: 100%;  
                width: 100%;  
                background: #EE6AA7;  
            }  
        </style>
</head>
<body style="background:#000000;text-align:center;margin:0 auto;width: 100%;height: 100%">
	<!-- <div  style="background: #104E8B;height: 45px;width: 100%;" id="jsheader">
			<nav id="jsnav">
					<a id="jsleft" tapmode="" onclick="api.closeWin();">
							<span>返回</span>
					</a>
					<div id="jsmiddle">
							<strong id="jstitle">我的二维码</strong>
					</div>
					<a id="jsright">
						<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
					</a>
			</nav>
	</div>
	<div  style="margin-top:50px;z-index: 1;position: absolute;text-align:center;height:100%;width:100%;background-size: 100% 100%;    -moz-background-size: 100% 100%;   -webkit-background-size: 100% 100%;  background-image: url('../../image/jhzf/ylbg.png')" >
		
	</div>
	<div id="qrcode" style="position: absolute;left:50%;z-index: 999;width:30%;height: 30%;margin-top: 70%;margin-left: 50%" ></div>
	<div style="height: 20px"></div> -->
	
	<!-- <div style="width:100%;display:table;background: #fff;position:fixed;border-bottom:1px solid #EAEAEA;z-index: 9999;" >
		<div style="" tapmode="presshover" onclick="api.closeWin();">
		<div style="float:left;display: flex;align-items: center;justify-content: center;height:51px;width:8%;">
			<div style="width:60%;">
			 <img style="display:block;width:100%;height:100%;" src="../../image/blc_back.png" />
			</div>
			</div>
			<div style="float:left;height:50px;line-height: 50px;">返回
			</div>
			</div>
			 
		<div style="height:50px;line-height: 50px;text-align:center;width:85%;font-weight:bold;">
		二维码
		</div>	
	</div>
	<div style="height: 50px"></div>
	<div style="position:relative;text-align:center;width: 100%;height: 100%;background-size: 100% 100%;    -moz-background-size: 100% 100%;   -webkit-background-size: 100% 100%;  background-image: url('../../image/jhzf/ylbg.png')   ">
		<div id="qrcode" style="background:transport;margin:0 auto;padding-top:70%;height: 200px;width: 200px;"></div>
		<br />
		<a href="javascript:void(0)" onclick="savePic()" style="border:2px;font-size:14px;color:#444"> 保 存 二 维 码</a>
	</div> -->
	<img id="ewm" style="height: 100%;width: 100%;background: #FFFFFF" />
	
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
	apiready = function(){
	    
		var up_url = url.queryEwm;
		var callback0 = function(ret, err){
		    var uiId;
	        var UILoading = api.require('UILoading');
			UILoading.flower({
			    center: {
			        x: api.winWidth/2.0,          
			        y: api.winHeight/2.0 
			    },
			    size: 30,
			    mask: "rgba(0,0,0,0.5)",
			    fixed: true
			}, function(ret) {
			    uiId = ret.id;
			});
			UILoading.closeFlower({
			    id: uiId
			});
			if(ret.flag=="Y"){
				alert(ret.pic);
				document.getElementById("#ewm").src = ret.pic;
				
            }else{
            	alert("获取二维码 失败");
            }
  	  	}
  	  	var content = {"merid":"QRC486210991688"};
   	  	apiAjax(JSON.stringify(content),up_url,callback0);
	};
	
	
	
	function savePic(){
		api.closeWin({});
	}
</script>
</html>